package com.mmall.service;

import com.mmall.common.ServiceResponse;
import com.mmall.pojo.Category;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ICategoryService {

    ServiceResponse addCategory(String categoryName, Integer parentID);

    ServiceResponse setCategoryName(Integer categoryid, String categoryname);

    ServiceResponse<List<Category>> getChildrenParalleCategory(Integer categoryid);

    ServiceResponse<List<Integer>> getCategoryAndDeepChildrenCategory(Integer categoryid);

}
